package com.wlc.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 王立朝
 * @description 工作队列（1生产者对多个消费者）
 * @date 2021-12-14 20:37:04
 */
@Configuration
public class WorkQueueConfig {

    private static final String work = "work_queue";
    @Bean
    public Queue workQueue() {
        return new Queue(work);
    }
}
